package com.yxw.yxnet_cd_center.customer_service.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @author liuxin
 * @date 2023.09.13
 */
@Data
@NoArgsConstructor
@TableName("yx_cs_voice_lib")
@ApiModel("语音库实体")
public class YxCsVoiceLibEntity  implements Serializable {

    private static final long serialVersionUID = 91694920064301L;
    /*
     *语音库ID
     */
    @TableId(value = "voice_lib_id",type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "语音库ID")
    private Long id;
    /*
     *名称
     */
    @TableField("voice_lib_name")
    @ApiModelProperty(value = "名称")
    private String voiceLibName;
    /*
     *语音存储地址
     */
    @TableField("voice_url")
    @ApiModelProperty(value = "语音存储地址")
    private String voiceUrl;
    /*
     *语音内容
     */
    @TableField("voice_content")
    @ApiModelProperty(value = "语音内容")
    private String voiceContent;
    /*
     *状态 0：禁用1：启用
     */
    @TableField("status")
    @ApiModelProperty(value = "状态 0：禁用1：启用")
    private Integer status;
    /*
     *创建时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
    @TableField("create_time")
    private java.util.Date createTime;
    /*
     *创建人ID
     */
    @TableField("create_id")
    @ApiModelProperty(value = "创建人ID")
    private Long createId;
    /*
     *创建人名称
     */
    @TableField("create_name")
    @ApiModelProperty(value = "创建人名称")
    private String createName;
    /*
     *更新人ID
     */
    @TableField("update_id")
    @ApiModelProperty(value = "更新人ID")
    private Long updateId;
    /*
     *更新人
     */
    @TableField("update_name")
    @ApiModelProperty(value = "更新人")
    private String updateName;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
    @TableField("update_name")
    private Date updateTime;
}
